package wh.coach._collection;

import java.util.Arrays;
import java.util.List;

/**
 * @author hangwen
 * @date 2023/6/28
 */
public class ArraysList {
    public static void main(String[] args) {
        //Arrays.asList的重载的坑——本质 参数必须是Object数组 ，int[]是原生数据数组 ， Integer[]是Object数组
        final List<Integer> list = Arrays.asList(1, 2, 3);

        int[] arr = new int[]{1, 2, 3};
        final List<int[]> ints = Arrays.asList(arr);
        final List<int[]> ints2 = Arrays.asList(new int[][]{arr});

        Integer[] arr2 = new Integer[]{1, 2, 3};
        final List<Integer> integers = Arrays.asList(arr2);
    }

}
